import service from '@/utils/request'

const DictApi = {
  addDict: function(data) {
    return service.post('dict/add', data)
  },
  editDict(data) {
    return service.put('dict/update', data)
  },
  updateDictState(data) {
    return service.put('dict/updateState', data)
  },
  getDictInfo(data) {
    return service.get('dict/get', {params: data })
  },
  listDict(data) {
    return service.get('dict/list',{params: data});
  },

}

export default DictApi
